//
//  UIBarButtonItem+STBarButtonItem.m
//  OCVVeibo
//
//  Created by leergou on 16/10/6.
//  Copyright © 2016年 WhiteHouse. All rights reserved.
//

#import "UIBarButtonItem+STBarButtonItem.h"

@implementation UIBarButtonItem (STBarButtonItem)

- (instancetype)initWithTitle:(NSString *)title target:(id)target action:(SEL)action{
    
    if (self = [self init]) {
     
        UIButton *button = [[UIButton alloc] initWithTitle:title norImg:nil target:target action:action];
        
        [button setTitleColor:ThemeColor forState:UIControlStateNormal];
        [button setTitleColor:[UIColor darkGrayColor] forState:UIControlStateDisabled];
        button.titleLabel.font = [UIFont systemFontOfSize:14];
        
        [button sizeToFit];
        
        self.customView = button;
        
    }
    return self;
}





@end
